#ifndef FORM2_H
#define FORM2_H

#include <QWidget>
#include <QCameraInfo>//摄像头设备信息类
#include <QCamera>//摄像头管理类
#include <QCameraImageCapture>
#include <QCameraViewfinder>
#include <QCameraImageCapture>
#include <QImage>
#include <QTime>


namespace Ui {
class Form2;
}

class Form2 : public QWidget
{
    Q_OBJECT

public:
    explicit Form2(QWidget *parent = nullptr);
    ~Form2();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void show_pic(int id, const QImage &pre);

private:
    Ui::Form2 *ui;
    QCamera *ca;//摄像头对象
    QCameraImageCapture *cap;//截屏对象
    QString Cname;//存放摄像头名字
};

#endif // FORM2_H
